﻿using ETS.Common;
using ETS.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETS.Implements
{
    /// <summary>
    /// 叶子节点
    /// </summary>
    public class Properties2FeatureLeaf : AbstractEvaluator
    {
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="name"></param>
        public Properties2FeatureLeaf(string name) : base(name)
        {

        }

        /// <summary>
        /// 去做评分
        /// </summary>
        /// <returns></returns>
        public override Score DoEvaluate()
        {
            return Score.U;
        }

        /// <summary>
        /// 显示部分与整体的层次结构
        /// </summary>
        /// <param name="depth"></param>
        public override void Display(int depth)
        {
            Console.WriteLine(new String('-', depth) + _name);
        }
    }
}
